package cn.yotta.other.server.controller;

import cn.yotta.user.web.autoconfiguration.context.user.UserContext;
import cn.yotta.user.web.autoconfiguration.provider.LoginUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wyaoyao
 * @date 2023/3/11 22:14
 */
@RestController
public class HelloController {

    @GetMapping("/user")
    public LoginUser user() {
        return UserContext.get();
    }
}
